import React from 'react';
import { routerRedux } from 'dva/router';
import { getCurrentMonth,onMenu } from '../utils/tools';
import { connect } from 'dva';
import { appname } from '../config';

export default connect()(class HomeMenu extends React.Component<{dispatch:any},any> {
	constructor() {
		super();
	}
	render() {
		return (
			<div className="home-menu">
						<div className="home-menu-item" onClick={() => { onMenu("/",this.props.dispatch) } }><img src="img/menu-home.png" /><p>首页</p></div>
						<div className="home-menu-item" onClick={() => { onMenu("/bank",this.props.dispatch) } }><img src="img/menu-bank.png" /><p>银行</p></div>
						<div className="home-menu-item" onClick={() => { onMenu("/income",this.props.dispatch) } }><img src="img/menu-income.png" /><p>收入</p></div>
						<div className="home-menu-item" onClick={() => { onMenu("/outlay",this.props.dispatch) } }><img src="img/menu-cost.png" /><p>开支</p></div>
						<div className="home-menu-item" onClick={() => { onMenu("/cash",this.props.dispatch) } }><img src="img/menu-cash.png" /><p>现金</p></div>
			</div>
		);
	}
}
)